//
//  BaseView.h
//  OCStarterProject
//
//  Created by huaya on 2025/10/2.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface BaseView : UIView

/// 初始化方法
- (instancetype)initWithFrame:(CGRect)frame;

/// 设置UI
- (void)setupUI;

/// 设置约束
- (void)setupConstraints;

/// 更新数据
- (void)updateWithData:(id)data;

/// 显示加载状态
- (void)showLoading;

/// 隐藏加载状态
- (void)hideLoading;

/// 显示空状态
- (void)showEmptyWithMessage:(NSString *)message;

/// 隐藏空状态
- (void)hideEmpty;

/// 显示错误状态
- (void)showErrorWithMessage:(NSString *)message;

/// 隐藏错误状态
- (void)hideError;

@end

NS_ASSUME_NONNULL_END
